package com.example.car.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateFormatUtil {

    public static String getFormatTime(Date date, String format) {
//        Calendar instance = Calendar.getInstance();
//        instance.set(Calendar.MONTH, 8);
        return new SimpleDateFormat(format).format(date);
    }

}
